#ifndef __INKLUDE_C_SERIALL_COMM_H__
#define __INKLUDE_C_SERIALL_COMM_H__

#include <Inklude/Inklude.h>
#include <Inklude/ikCString.h>
#include <Windows.h>

namespace Inklude
{

    class INKLUDE_CLASS_EXPORT ikCSerialComm
    {
    public:
        ikCSerialComm();
        ~ikCSerialComm();
        bool Create(Inklude::ikCString& strComName, unsigned int BaudRate);
        bool Read(char* Buffer, unsigned int ReadSize, unsigned int Offset = 0);
        bool Write(char* Buffer, unsigned int WriteSize, unsigned int Offset = 0);

        bool WriteString(Inklude::ikCString& strData);
    protected:
    private:
        HANDLE m_hSerial;
    };

} // namespace Inklude

#endif // __INKLUDE_C_SERIALL_COMM_H__
